package com.xhwl.data.service;

import com.xhwl.common.pojo.ResultJson;

import com.xhwl.common.pojo.msg.NoticeData;
import com.xhwl.common.pojo.msg.Target;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;


/**
 * @Author: luyi
 * @Description:
 * @Date: Create in 18:58 2020/11/30
 */
@FeignClient("cent-message")
public interface IMessageCentService {


    @RequestLine(value = "POST /send/id")
    ResultJson send(@Param("templateId") Integer templateId, @Param("noticeData") NoticeData noticeData, @Param("target") Target target);

	/**
	 * 消息发送
	 * @param templateCode
	 * @param noticeData
	 * @param target
	 * @return
	 */
	@RequestLine(value = "POST /send/code")
	ResultJson send(@Param("templateCode") String templateCode, @Param("noticeData") NoticeData noticeData, @Param("target") Target target);
}
